import { ref, computed } from 'vue'
import { defineStore } from 'pinia'

export const useCounterStore = defineStore(
  'counter',
  () => {
    const userinfo = ref({
      userid: '',
      username: '',
      userpass: '',
      realname: '',
      roleid: '',
      rolename: '',
      departmentid: '',
      departmentname: '',
      phone: '',
      email: '',
      passstate: false,
      routerstate: true,
    })
    const menu = ref([])
    return { userinfo, menu }
  },
  { persist: true }
)
